<div class="modal-content">
    <div class="modal-header">
        <h4 class="modal-title">添加配置</h4>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">×</span>
        </button>
    </div>
    <div class="modal-body">
        <div class="form-group row">
            <label class="col-sm-2 col-form-label">表名</label>
            <div class="col-sm-10">
                <input type="text" ng-model="form.form" class="form-control" form-check="must" form-check-alert="表名不能为空！">
            </div>
        </div>
        <div class="form-group row">
            <label class="col-sm-2 col-form-label">列名</label>
            <div class="col-sm-10">
                <input type="text" ng-model="form.col" class="form-control" form-check="must" form-check-alert="列名不能为空！">
            </div>
        </div>
        <div class="form-group row">
            <label class="col-sm-2 col-form-label">注释</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" ng-model="form.name" form-check="must" form-check-alert="列名注释不能为空！"/>
            </div>
        </div>
        <div class="form-group row">
            <label class="col-sm-2 col-form-label">备注</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" ng-model="form.remarks"/>
            </div>
        </div>
        <div class="form-group row">
            <label class="col-sm-2 col-form-label">类型</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" ng-model="form.type"/>
            </div>
        </div>
        <div class="form-group row">
            <label class="col-sm-2 col-form-label">排序</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" ng-model="form.sort" form-check="number" form-check-alert="仅只能输入数字！"/>
            </div>
        </div>
        <div class="form-group row">
            <label class="col-sm-2 col-form-label">最大长度</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" ng-model="form.length" form-check="must,number" form-check-alert="最大长度不能为空！" maxlength="10"/>
            </div>
        </div>
		<div class="form-group row">
           <label class="col-sm-2 col-form-label">规则外键编号</label>
           <div class="col-sm-10">
               <input type="text" class="form-control" ng-model="form.fk_rule"/>
           </div>
		</div>
		<div class="form-group row">
             <label class="col-sm-2 col-form-label">外键关系表名</label>
             <div class="col-sm-10">
                 <input type="text" class="form-control" ng-model="form.fk_form"/>
             </div>
		</div>
		<div class="form-group row">
             <label class="col-sm-2 col-form-label">是否非空</label>
             <div class="col-sm-3">
                 <select class="form-control" ng-model="form.ifnull">
                 	<option value="">==请选择==</option>
                     <option value="0">否</option>
                     <option value="1">是</option>
                 </select>
             </div>
             <label class="col-sm-2"></label>
             <label class="col-sm-2 col-form-label">是否不可重复</label>
             <div class="col-sm-3">
                 <select class="form-control" ng-model="form.ifsole">
                 	<option value="">==请选择==</option>
                     <option value="0">否</option>
                     <option value="1">是</option>
                 </select>
             </div>
		</div>
		<div class="form-group row">
             <label class="col-sm-2 col-form-label">是否导入</label>
             <div class="col-sm-3">
                 <select class="form-control" ng-model="form.ifimport">
                 	<option value="">==请选择==</option>
                     <option value="0">否</option>
                     <option value="1">是</option>
                 </select>
             </div>
             <label class="col-sm-2"></label>
             <label class="col-sm-2 col-form-label">是否导出</label>
             <div class="col-sm-3">
                 <select class="form-control" ng-model="form.ifexport">
                 	<option value="">==请选择==</option>
                     <option value="0">否</option>
                     <option value="1">是</option>
                 </select>
             </div>
		</div>
    </div>
    <div class="modal-footer">
        <button ng-click="saveForm()" type="button" class="btn btn-success"><i class="iconfont icon-correct"></i>&nbsp;保存</button>
    </div>
</div>